package edu.sdbi.judge.mapper;


import edu.sdbi.judge.domain.entity.News;
import edu.sdbi.judge.domain.entity.NewsType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NewsMapper {
    @Select("SELECT * FROM news_type WHERE id = #{id}")
    NewsType getNewsTypeById(@Param("id") String id);

    void delete();

    News selectById(String newsId);

    List<News> selectList(Object o);

    void insert(News news);
}
